package org.nf.web.common.converter;

import org.nf.web.common.TypeConverter;

import java.math.BigDecimal;

/**
 * @Author lzp
 * @Date 2024-05-19
 */
public class BigDecimalConverter implements TypeConverter {
    @Override
    public boolean supports(Class<?> paramType) {
        return paramType.equals(BigDecimal.class);
    }

    @Override
    public Object convert(String requestParam) {
        return new BigDecimal(requestParam);
    }
}
